<h1> Agrupador de Partes a <%= @cultural_heritage_cultural_heritage.name %></h1>
<% if flash[:notice] %>
    <div id="notice"><%= flash[:notice] %></div>
<% end %>
<fieldset id="agrupacion">
  <legend>Datos del Patrimonio</legend>
  <% if  !@cultural_heritage_cultural_heritage.nationalRegistrationCode.blank?%>
    <div class="field">
      <b>Código de Registro Nacional:</b>
      <%= @cultural_heritage_cultural_heritage.nationalRegistrationCode %>
    </div>
  <%end%>
  <% if  !@cultural_heritage_cultural_heritage.description.blank?%>
    <div class="field">
      <b>Descripción:</b>
      <%= @cultural_heritage_cultural_heritage.description %>
    </div>
  <%end%>
  <% if  !@cultural_heritage_cultural_heritage.description.blank?%>
    <div class="field">
      <b>Grupo:</b>
      <%= @cultural_heritage_cultural_heritage.obj_group.name %>
    </div>
  <%end%>
</fieldset>
<fieldset id="agrupacion">
  <legend>Partes conformantes</legend>
    <table  >
      <thead>
        <tr>
          <th>Código</th>
          <th>Nombre de Patrimonio</th>
          <th>Grupo</th>
          <th>Sub Grupo</th>
          <th>Cultura</th>
        </tr>
      </thead>
      <tbody>
      <% @partes_actuales.each do |cultural_heritage_cultural_heritage| %>
        <tr >
          <td class="national_registration_code"><%= cultural_heritage_cultural_heritage.nationalRegistrationCode %></td>
          <td class="name"><%= cultural_heritage_cultural_heritage.name %></td>
          <td ><%= cultural_heritage_cultural_heritage.obj_group.name %></td>
          <td ><%= cultural_heritage_cultural_heritage.obj_subGroup.name %></td>
          <td ><%= cultural_heritage_cultural_heritage.obj_culture.name %></td>
        </tr>
      <% end %>
      </tbody>
    </table>
</fieldset>
<%= render :partial=>"partes_search" %>
<!-- Tabla -->
<div id="cultural_heritage_partes_table">
<%= render :partial=>"partes_table" %>
</div>
<!-- Lista de asignaciones -->
<div id="cultural_heritage__list">
<%= render :partial=>"partes_list" %>
</div>
<br/>
<div id="lineaform"></div>
<fieldset>
  <%= link_to 'Mostrar', @cultural_heritage_cultural_heritage %> |
  <%= link_to 'Menu',cultural_heritage_cultural_heritages_path%>
</fieldset>